.class Lcom/waiqin365/lightapp/syorder/product/a/n;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/CompoundButton$OnCheckedChangeListener;


# instance fields
.field final synthetic a:Landroid/widget/CheckBox;

.field final synthetic b:Lcom/waiqin365/lightapp/syorder/product/a/m;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/syorder/product/a/m;Landroid/widget/CheckBox;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/syorder/product/a/n;->b:Lcom/waiqin365/lightapp/syorder/product/a/m;

    iput-object p2, p0, Lcom/waiqin365/lightapp/syorder/product/a/n;->a:Landroid/widget/CheckBox;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onCheckedChanged(Landroid/widget/CompoundButton;Z)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/product/a/n;->a:Landroid/widget/CheckBox;

    invoke-virtual {v0}, Landroid/widget/CheckBox;->getTag()Ljava/lang/Object;

    move-result-object v0

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    if-eqz p2, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/product/a/n;->b:Lcom/waiqin365/lightapp/syorder/product/a/m;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/product/a/m;->b:Ljava/util/List;

    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/product/a/n;->a:Landroid/widget/CheckBox;

    invoke-virtual {v1}, Landroid/widget/CheckBox;->getTag()Ljava/lang/Object;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/product/a/n;->b:Lcom/waiqin365/lightapp/syorder/product/a/m;

    iget-object v1, v0, Lcom/waiqin365/lightapp/syorder/product/a/m;->b:Ljava/util/List;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/product/a/n;->a:Landroid/widget/CheckBox;

    invoke-virtual {v0}, Landroid/widget/CheckBox;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/syorder/d/b;

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_1
    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/product/a/n;->b:Lcom/waiqin365/lightapp/syorder/product/a/m;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/syorder/product/a/m;->a(Z)Z

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/product/a/n;->b:Lcom/waiqin365/lightapp/syorder/product/a/m;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/product/a/m;->b:Ljava/util/List;

    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/product/a/n;->a:Landroid/widget/CheckBox;

    invoke-virtual {v1}, Landroid/widget/CheckBox;->getTag()Ljava/lang/Object;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    goto :goto_1
.end method
